<template>
  <div class="menu">
    <PageContent
      :tableConfig="menuTableConfig"
      :pageName="pageName"
      ref="pageContentRef"
    >
      <template #enable="{ data }">
        <el-tag :type="data ? 'success' : 'danger'">{{
          data ? '启用' : '禁用'
        }}</el-tag>
      </template>
    </PageContent>
  </div>
</template>

<script setup lang="ts">
import PageContent from '@/components/page-content/page-content.vue';
import { menuTableConfig } from './config/contentConfig';
import { useContentData } from '@/hooks/useContentData';
const pageName = 'menu';
const [pageContentRef, handleSearchClick, handleResetClick] = useContentData();
</script>

<style scoped lang="less"></style>
